package com.wf.action;

import com.opensymphony.xwork2.ActionSupport;
import com.wf.service.interfaces.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


import java.util.List;

/**
 * Created by wu on 14/12/23.
 */

@Controller
public class UserAction extends ActionSupport {

    @Autowired
    private IUserService userService;

    public String getUser() throws Exception{
        List list = userService.getAllUsers();
        System.out.print(list.size());
        return SUCCESS;
    }

}
